import unittest

test_dir='./test_case'

# discover发现需要引入unnittest

discover = unittest.defaultTestLoader.discover(test_dir,"test*.py")

if __name__ == '__main__':
    unittest.TextTestRunner().run(discover)